package com.example.back.jpa;

import com.example.common.entity.HospitalConfig;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface HospitalConfigRepository extends JpaRepository<HospitalConfig, Long> {
    
    @Modifying
    @Transactional
    @Query(value = "DELETE FROM h_answer WHERE t_id_bigint=?1",nativeQuery = true)
    void deleteByTid(Long tid);
}
